package com.lgl.maker.cli.command;

import cn.hutool.core.io.FileUtil;
import org.junit.Test;
import picocli.CommandLine;
import picocli.CommandLine.Command;

import java.io.File;
import java.util.List;

/**
 * @author 良哥
 * @verison FileGenerator.java.ftl.0
 */


@Command(name = "everyList", description = "查看文件", mixinStandardHelpOptions = true)
public class ListCommand implements Runnable {

    @Test
    @Override
    public void run() {
        File proFile = new File(System.getProperty("user.dir"));
        String absolutePath = proFile.getParentFile().getAbsolutePath();
        String inputPath = absolutePath + "/sample_pro_all";

        List<File> files = FileUtil.loopFiles(inputPath);
        System.out.println("gonna show each file");
        for (File file : files) {
            System.out.println(file);
        }
    }
}
